package com.sopra.tecnica.poc.server.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sopra.tecnica.poc.server.dao.OrderDao;
import com.sopra.tecnica.poc.server.entity.OrderEntity;

@Service
public class OrderService {
	
	@Autowired
	private OrderDao dao;
	
	public List<OrderEntity> findLastYearCustomerOrders(String customerCode) {
		return dao.findLastYearCustomerOrders(customerCode);
	}
	
	public List<Map<String, Object>> itemsForReport(int orderNum) {
		return dao.itemsForReport(orderNum);
	}
}
